package com.autumn.auth.server;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import com.autumn.mybatis.annotation.EnableAutumnMybatis;
import com.autumn.oauth2.zero.EnableAutumnAuthorizationServer;
import com.autumn.redis.EnableAutumnRedis;
import com.autumn.swagger.EnableAutumnSwagger;
import com.autumn.web.AbstractAutumnApplication;
import com.autumn.web.EnableAutumnApiResponseBody;

/**
 * 授权服务器
 * 
 * @author 老码农 2018-04-02 23:16:13
 */
@SpringBootApplication
@ComponentScan({ "com.autumn.auth.server" })
@EnableResourceServer
@EnableAutumnSwagger()
// @EnableAutumnApiResponseBody()
@EnableAutumnApiResponseBody(apiControllerPackages = { "com.autumn.auth.server.controllers.api" })
@EnableAutumnMybatis(value = { "com.autumn.oauth2.zero.domain.repositories.identity" }, typeAliasesPackages = {
		"com.autumn.oauth2.zero.domain.entities.identity" })
@EnableAutumnRedis
@EnableAutumnAuthorizationServer()
public class AuthServerApplication extends AbstractAutumnApplication {

	/**
	 * 启动
	 * 
	 * @param args
	 *
	 */
	public static void main(String[] args) {	
		//OAuth2AuthenticationProcessingFilter aa;
		run(AuthServerApplication.class, args);
	}
}
